<?php
function encrypt($data, $key, $iv)
{
    $key = hex2bin($key);
    $iv = hex2bin($iv);
    return openssl_encrypt($data, 'aes-128-cbc', $key, 0, $iv);
}
$key = '5ae1b8a17bad4da4fdac796f64c16ecd';
$iv = '34857d973953e44afb49ea9d61104d8c';
$data = file_get_contents('raw.php.txt');
$result = encrypt($data, $key, $iv);
file_put_contents('result.php.txt', $result);
?>
